module.exports = function(grunt) {    
    //JS任务配置.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        yuidoc: {
            compile: {
                name: '<%= pkg.name %>',
                description: '<%= pkg.description %>',
                version: '<%= pkg.version %>',
                url: '<%= pkg.homepage %>',
                options: {
                    paths: '../js/',
                    outdir: '../docs/'
                }
            }
        }
    });        
    require('./../../tools/grunt/node_modules/grunt-contrib-yuidoc/tasks/yuidoc.js')(grunt);     
    grunt.registerTask('default', [ 'yuidoc']);
};